package phasebookws.clientsample;

import phasebookws.*;

public class ClientSample {

	public static void main(String[] args) {

		try {

			System.out.println("***********************");
			System.out.println("Create Web Service Client...");
			ESBWS service1 = new ESBWS();
			System.out.println("Create Web Service...");
			IFacade port1 = service1.getFacadePort();
			System.out.println("Call Web Service Operation...");

			System.out.println("Server said: " + port1.getLoggedProfile(null));

			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.registerBet(null,Integer.parseInt(args[0]),Integer.parseInt(args[1]),Integer.parseInt(args[2])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.checkOperation(null,Integer.parseInt(args[3])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getActiveLotteryDetails(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.updateName(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.sendFriendshipInvitation(null,Integer.parseInt(args[4]),Integer.parseInt(args[5])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.updateCity(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getPrivateMessageList(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.isFriendWith(null,Integer.parseInt(args[6]),Integer.parseInt(args[7])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.confirmFriendshipRequest(null,Integer.parseInt(args[8])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.publishPrivateMessage(null,Integer.parseInt(args[9]),Integer.parseInt(args[10]),null,Integer.parseInt(args[11])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getMyFriends(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.updatePhoto(null,Integer.parseInt(args[12])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.resetPassword(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getPendingFriendshipRequests(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getUserBalance(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.addPhoto(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.updateNotificationApproach(null,null,Boolean.parseBoolean(args[13])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getMovements(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.reloadLinden(null,Integer.parseInt(args[14]),null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.updateGender(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.debitLinden(null,Integer.parseInt(args[15])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getLastLogin(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.publishPublicMessage(null,Integer.parseInt(args[16]),Integer.parseInt(args[17]),null,Integer.parseInt(args[18])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.updateAge(null,Integer.parseInt(args[19])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getProfileByUsername(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getEMailById(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.authenticate(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.validateAuthenticationToken(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.registerUser(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.searchFriends(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getPublicMessageList(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.getProfileById(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port1.updateEmail(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Create Web Service...");
			IFacade port2 = service1.getFacadePort();
			System.out.println("Call Web Service Operation...");
			System.out.println("Server said: " + port2.getLoggedProfile(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.registerBet(null,Integer.parseInt(args[20]),Integer.parseInt(args[21]),Integer.parseInt(args[22])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.checkOperation(null,Integer.parseInt(args[23])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getActiveLotteryDetails(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.updateName(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.sendFriendshipInvitation(null,Integer.parseInt(args[24]),Integer.parseInt(args[25])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.updateCity(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getPrivateMessageList(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.isFriendWith(null,Integer.parseInt(args[26]),Integer.parseInt(args[27])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.confirmFriendshipRequest(null,Integer.parseInt(args[28])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.publishPrivateMessage(null,Integer.parseInt(args[29]),Integer.parseInt(args[30]),null,Integer.parseInt(args[31])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getMyFriends(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.updatePhoto(null,Integer.parseInt(args[32])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.resetPassword(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getPendingFriendshipRequests(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getUserBalance(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.addPhoto(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.updateNotificationApproach(null,null,Boolean.parseBoolean(args[33])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getMovements(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.reloadLinden(null,Integer.parseInt(args[34]),null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.updateGender(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.debitLinden(null,Integer.parseInt(args[35])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getLastLogin(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.publishPublicMessage(null,Integer.parseInt(args[36]),Integer.parseInt(args[37]),null,Integer.parseInt(args[38])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.updateAge(null,Integer.parseInt(args[39])));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getProfileByUsername(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getEMailById(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.authenticate(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.validateAuthenticationToken(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.registerUser(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.searchFriends(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getPublicMessageList(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.getProfileById(null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("Server said: " + port2.updateEmail(null,null));
			//Please input the parameters instead of 'null' for the upper method!

			System.out.println("***********************");
			System.out.println("Call Over!");

		} catch (InvalidAuthenticationException_Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
